        var count = 0;
        var vue=new Vue({
            el:'.view_box',
            data:{
                isHidden:0,
                Mailinfo:[],
                isCollect:0,
                nickname:"",
            },
            computed:{
                
            },
            created:function (){ 

            },
            methods:{
                change_ver:function () {
                    if(this.isHidden==0){
                        this.isHidden=1;
                    }else{
                        this.isHidden=0;
                    }
                },refresh:function (jsonarray) {
                    var json = JSON.stringify(jsonarray, null, 4);
                    this.Mailinfo=JSON.parse(json).data;
                    this.isCollect = window.android.getisCollect();
                    //console.log(this.isCollect);
                },
                change_collect:function () {
                    if(this.isCollect==0){
                        this.isCollect=1;
                    }else{
                        this.isCollect=0;
                    }
                },refresh_nickname:function(nickname){
                    this.nickname = nickname;
                },
            }
        });
        window.change_ver = function(){
            vue.change_ver();
        }
        window.refresh = function(jsonarray){
            vue.refresh(jsonarray);
        }
        window.change_collect = function(){
            vue.change_collect();
        }
        window.refresh_nickname = function(nickname){
            vue.refresh_nickname(nickname);
        }
        //查看图片
        window.touch_picture = function(event){
            if(count == 0){
                if(event.target.nodeName.toLowerCase() == 'img'){
                window.android.watchPicture(event.target.src);
　 　　　　　　 //console.log(event.target.src);
                count = 1;
　　　　　　    }
            
                flag=setTimeout(function(){
                    count = 0;
                },300); 
            }
        }
        //收藏
        window.collect = function(){
            if(count == 0){
                window.android.collect();
                count = 1;
            
                flag=setTimeout(function(){
                    count = 0;
                },300); 
            }
        }
        //回复
        window.toSend = function(){
            if(count == 0){
                window.android.toSend();
                count = 1;
            
                flag=setTimeout(function(){
                    count = 0;
                },300); 
            }
        }
        //删除
        window.delMessage = function(){
            if(count == 0){
                window.android.delMessage();
                count = 1;
            
                flag=setTimeout(function(){
                    count = 0;
                },300); 
            }
        }